package com.muyu.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;

/**
 * 令牌信息对象 dm_keys
 * 
 * @author ruoyi
 * @date 2025-01-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DmKeys extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 令牌号 */
    @Excel(name = "令牌号")
    private String code;

    /** 会员id */
    @Excel(name = "会员id")
    private Long informationId;

    /** 书画家id */
    @Excel(name = "书画家id")
    private Long userId;

    /** 书画家名称 */
    @Excel(name = "书画家名称")
    private String userName;

    /** 商家id */
    @Excel(name = "商家id")
    private Long storeId;

    /** 商家名称 */
    @Excel(name = "商家名称")
    private String storeName;

    private String storeAvatar;

    /** 令牌状态（0：未绑定，1：已绑定，2：已失效） */
    @Excel(name = "令牌状态", readConverterExp = "0=：未绑定，1：已绑定，2：已失效")
    private Long state;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("informationId", getInformationId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("storeId", getStoreId())
            .append("storeName", getStoreName())
            .append("state", getState())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
